package com.jie.pojo;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;
/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 曾豪杰
 * @Date: 2022/09/11/17:34
 * @Description:博客
 */
@Data
@TableName("blog")
public class Blog {
    @TableId
    private Long id;//id
    private String title;//标题
    private String content;//内容
    private String firstPicture;//首图
    private String type;//类型
    private Integer views;//游览次数
    private int appreciation;//赞赏
    private int shareStatement;//转载声明
    private int comment;//评论
    private int published;//发布
    private int recommend;//推荐
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;//创建时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;//修改时间
    @TableField(exist = false)
    private Type types;//分类
    @TableField(exist = false)
    private List<Tag> tagList;//标签列表
    @TableField(exist = false)
    private List<Blog_Tag> blogATagList;//中间表
    @TableField(exist = false)
    private Long bId;//博客id
    @TableField(exist = false)
    private Long tId;//标签id
    @TableField(exist = false)
    private User user;//user对象
    @TableField(exist = false)
    private List<Comment> commentList;//评论列表
    @TableField(exist = false)
    private String flags;//0原创 2 转载 3翻译 描述字段
    @TableField(exist = false)
    private Comment parentComment;//父评论
    @TableField(exist = false)
    private List<Comment> replyComments;//子评论
    private String description;//博客描述
    @TableField(exist = false)
    private String tagIds;//标签描述
    private int flag;//0原创 2 转载 3翻译
}
